package Lab1;

import se.lth.cs.realtime.RTThread;

public class RegulMon{
	private double angle;
	private double position;
	private double angleRef;
	private double posRef;
	
	public RegulMon(){
		angle=position=posRef=0;
		angleRef=-9;
	}
	
	public synchronized double getAng(){
		return angle;
	}
	public synchronized double getPos(){
		return position;
	}
	public synchronized double getAngleRef(){
		return angleRef;
	}
	public synchronized double getPosRef(){
		return posRef;
	}
	public synchronized void setAng(double ang){
//		System.out.println("[RegulMon]: angle set to: " + angle);
		this.angle=ang;
	}
	public synchronized void setPos(double pos){
//		System.out.println("[RegulMon]: pos set to: " + pos);
		this.position=pos;
	}
	public synchronized void setAngleRef(double angleRef){
//		System.out.println("[RegulMon]: angleRef set to: " + angleRef);
		this.angleRef = angleRef;
	}
	public synchronized void setPosRef(double posRef){
//		System.out.println("[RegulMon]: posRef set to: " + posRef);
		this.posRef = posRef;
	}

}
